package utility;

import java.util.Vector;

public class FuncAttributes extends Attributes {
    private Vector<Attributes> argType = new Vector<Attributes>();
    private Vector<String> argName = new Vector<String>();
    private Attributes returnAtt;
    private int depth=-1;
    private Boolean forDec = false;
    public FuncAttributes() {
        kind = "func";
        type = "func";
        depth = 0;
    }
    
    public FuncAttributes(Boolean para) {
        super(para);
        kind = "func";
        type = "func";
        depth = 0;
    }

    public void addArg(Attributes type, String name) {
        argType.add(type);
        argName.add(name);
    }

    public Attributes getReturnAtt() {
        return returnAtt;
    }

    public void setReturnAtt(Attributes returnAtt) {
        this.returnAtt = returnAtt;
    }

    public int getDepth() {
        return depth;
    }

    public void setDepth(int depth) {
        this.depth = depth;
    }

    public Boolean getForDec() {
        return forDec;
    }

    public void setForDec(Boolean forDec) {
        this.forDec = forDec;
    }

    public Vector<Attributes> getArgType() {
        return argType;
    }

    public Vector<String> getArgName() {
        return argName;
    }
    
}

